import React, { Fragment, useContext, useEffect, useState } from "react";
import Head from "next/head";

const Layout = ({ PageTitle, children }) => {
  
  return (
    <Fragment>
      <Head>
        <title>{PageTitle ? PageTitle + ' - ' + process.env.NEXT_PUBLIC_WEB : process.env.NEXT_PUBLIC_WEB}</title>
      </Head>
      <div id="wrapper">{children}</div>
      <script src="/js/app.js"></script>
    </Fragment>
  );
};

export default Layout;
